Page({
  data: {

  },
  onReady(){
    this.toast = this.selectComponent("#toast-top");
  },
  click1(){
    this.toast.setShow("success","成功的信息");
  },
  click2(){
    this.toast.setShow("error","失败的信息");
  }
})